﻿@model BcdFileDataViewModel
@{
    Layout = null;
    ViewBag.Title = "归档材料表添加";
}
<style type="text/css">
    .file_type_table input, textarea {
        width: 300px !important;
    }
</style>
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("CreatePost", "FileData", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,refre_jgzl_gdcl_index);", @class = "pageForm required-validate" }))
{
    <div class="pageFormContent sortDrag" layouth="60">
        @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_ID, new { @type = "hidden" })
        @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_PID, new { @type = "hidden" })
        @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_PIds, new { @type = "hidden" })
        <table class="tab01 tabNo file_type_table" width="95%;">
            <tr>
                <td class="td1" style="width: 25%;">父类型：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFiledataInfo.Fd_PName, new { @readonly = "readonly", @style = "height: 45px;line-height: 15px;" })
                </td>
            </tr>
            <tr>
                <td class="td1" style="width: 25%;">归档内容：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFiledataInfo.Fd_Name, new { @style = "height: 45px;line-height: 15px;" })
                    @Html.ValidationMessageFor(model => model.TheBcdFiledataInfo.Fd_Name)
                </td>
            </tr>
            <tr>
                <td class="td1">档案号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_Code)
                </td>
            </tr>
            <tr>
                <td class="td1">序号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_Numb)
                </td>
            </tr>
            <tr>
                <td class="td1">排序：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_Order)
                </td>
            </tr>

            <tr>
                <td class="td1">编制单位类型：</td>
                <td>
                    @{string acValue = "";}
                    @{switch (Model.TheBcdFiledataInfo.Fd_UType)
                      {
                          case "施工单位": acValue = "GetSegmentJson"; break;
                          case "监理单位": acValue = "GetSupervJson"; break;
                          case "施工、监理": acValue = "GetAllSegmentJson"; break;
                          default: acValue = "GetAllSegmentJson"; break;
                      }}
                    <input id="input_action" type="hidden" value="@acValue" />
                    @Html.DropDownListFor(model => model.TheBcdFiledataInfo.Fd_UType, ViewBag.utypelist as IEnumerable<SelectListItem>, new { @style = "width: 306px !important;" })
                </td>
            </tr>
            <tr>
                <td class="td1">保管期限：</td>
                <td>
                    @Html.DropDownListFor(model => model.TheBcdFiledataInfo.Fd_Kept, ViewBag.keptlist as IEnumerable<SelectListItem>, new { @style = "width: 306px !important;" })
                </td>
            </tr>
            <tr>
                <td class="td1">编制套数：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_Kit)
                    @Html.ValidationMessageFor(model => model.TheBcdFiledataInfo.Fd_Kit)
                </td>
            </tr>
            <tr>
                <td class="td1">表格号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheBcdFiledataInfo.Fd_Table)
                </td>
            </tr>
            <tr>
                <td class="td1">备注：</td>
                <td>
                    @Html.TextAreaFor(model => model.TheBcdFiledataInfo.Fd_Remark, new { @style = "height: 45px;line-height: 15px;" })
                </td>
            </tr>
        </table>
    </div>

    <div class="formBar">
        <ul>
            <li>
                <button type="submit" class="btn btn-sm">保存</button>
            </li>
            <li>
                <button type="button" class="close btn btn-default btn-sm">取消</button>
            </li>

        </ul>
    </div>
}
